import { _decorator, Component, Node, Vec3 } from 'cc';
import {RoadPoint} from "db://assets/script/RoadPoint";
const { ccclass, property } = _decorator;

@ccclass('CarManager')
export class CarManager extends Component {

    private _currRoadPoint: RoadPoint = null;

    private _pointA = new Vec3();

    private _pointB = new Vec3();


    public setEntry(entry: Node) {
        this.node.setWorldPosition(entry.worldPosition);
        this._currRoadPoint = entry.getComponent(RoadPoint);
    }
}


